#include <stdio.h>

#define MAX(a,b) ((a) > (b)?(a):(b))
#define MIN(a,b) ((a) < (b)?(a):(b))

int maxArea(int* height,int heightSize)
{
	int i,j;
	int ret = 0;
	for(i = 0;i < heightSize-1;i++)
		for(j = i+1;j < heightSize;j++)
		{
			ret = MAX(ret,(j-i)*MIN(height[i],height[j]));
		}
	
	return ;
}

